<%-- 
    Document   : autocompleter
    Created on : Jan 26, 2011, 12:47:08 PM
    Author     : isak
--%>

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">



<html>
  <head>
    <title>Struts 2 Autocompleter Example!</title>
    <sx:head parseContent="true"/>
  </head>
  <body>
    <h1>Struts 2 Autocompleter Example!</h1>
    <s:url id="jsonList" value="jsp/listapaises.action"/>
    <s:url id="autoex" value="jsp/autocompleter.action"  />
    <s:label name="stateName" value="Select State Name:" />
    <form id="selectForm">
    <sx:autocompleter name="select"  href="%{jsonList}" cssStyle="width: 200px;" notifyTopics="/Changed" autoComplete="true" searchType="substring" />
    </form>
    <sx:autocompleter  href="%{#autoex}" autoComplete="false" formId="selectForm" listenTopics="/Changed" forceValidOption="true" id="ops"/>
  </body>
  
</html>
